package com.yangquan.thread;


import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @author yangquan
 * @date 2025/4/6
 * @apiNote
 */
public class ThreadFactoryDemo {
    public static void main(String[] args) {
        new ThreadPoolExecutor(
                5, 10, 60,TimeUnit.SECONDS,
                new ArrayBlockingQueue<>(100),
                Executors.defaultThreadFactory(),
                new ThreadPoolExecutor.CallerRunsPolicy());

    }
}
